(bootstrap-clean): Run bootstrap-clean-$(SHELLTYPE) explicitly in a recursive
authorEli Zaretskii <eliz@gnu.org>
Sat, 23 Dec 2006 02:04:31 +0000 (02:04 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 23 Dec 2006 02:04:31 +0000 (02:04 +0000)
Make, not implicitly through prerequisites, since the latter is wrong under
parallel builds.

lisp/makefile.w32-in

index 058e71f5817fbb249338164922260ef0d409bacb..bbae20fd4465994ec139d30d67b6829af1d91371 100644 (file)
@@ -371,7 +371,12 @@ pre-mh-loaddefs.el-CMD:
 # sources only.
 
 # Need separate version for sh and native cmd.exe
-bootstrap-clean: bootstrap-clean-$(SHELLTYPE) $(lisp)/loaddefs.el
+# Note that bootstrap-clean-$(SHELLTYPE) copies ldefs-boot.el to loaddefs.el,
+# and thus the almost-empty loaddefs.el crafted by the $(lisp)/loaddefs.el
+# target can NOT be built _after_ bootstrap-clean-$(SHELLTYPE) does its
+# thing, or else an empty loaddefs.el will overwrite the full one.
+bootstrap-clean: $(lisp)/loaddefs.el
+       $(MAKE) $(MFLAGS) bootstrap-clean-$(SHELLTYPE)
 
 bootstrap-clean-CMD:
 #      if exist "$(EMACS)" $(MAKE) $(MFLAGS) autoloads